<!DOCTYPE html>
<html>
  <head lang="en">
    <meta charset="UTF-8" />
    <title>CSS优先级</title>
    <style type="text/css">
      ul li:first-of-type {
        color: orange !important;
      }
    </style>
  </head>
  <body>
    <ul>
      <li style="color: green" class="li1">JS基础</li>
      <li>JS函数</li>
      <li>JS对象</li>
    </ul>
    <ol>
      <li class="li1">CSS基础</li>
      <li>CSS语法</li>
      <li>CSS优先级</li>
    </ol>
  </body>
</html>
